package com.lx.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

//import javax.validation.constraints.NotNull;

// @Data 构造get set hashcode equals tosString
@Data
//
@AllArgsConstructor
// 如果没有无参的构造函数就无法使用反射创建 @NoArgsConstructor构造无参构造函数
@NoArgsConstructor
//@NotNull
public class Result implements Serializable {
    int code;
    String msg;
    Object data;

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}
